<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>采购单详细信息</title>
<script type="text/javascript">
function doback(){
	document.all.operate.value = "";
	document.forms[0].submit();
}
</script>
</head>
<body>
<form action="<%=path %>/purchase.action" method="post">
<table width="760" border="0" cellpadding="0" cellspacing="0" >
  <tr>
     <td>
     <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="MainBody">
      <tr>
        <td class="MainBody_title"><hello:forValue type="title" /></td>
      </tr>
        <tr>
          <td valign="top"><input name="operate" type="hidden" value=""/>
          <div align="right" style="padding: 10 50 10 0;">
			<input type="button" class="btn" value="返 回" onclick="doback()"/>&nbsp;&nbsp;</div>
          <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
                <tr>
                  <td  colspan="6" class="bg_title">供 应 商 信 息</td>
                </tr>
                <tr>
                  <th width="12%" nowrap="nowrap">供应商名称</th> 
                  <td width="28%">${purchaseinfo.suppliername }</td>
                  <th width="12%" nowrap="nowrap">供应类型</th>
                  <td width="18%">${purchaseinfo.supplyflag }</td>
                  <th width="12%" nowrap="nowrap">评级</th> 
                  <td width="18%">${purchaseinfo.grade }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">银行账号</th> 
                  <td >${purchaseinfo.banknumber }</td>
                  <th nowrap="nowrap">开户行</th>
                  <td >${purchaseinfo.bank }</td>
                  <th nowrap="nowrap">银行户名</th>
                  <td >${purchaseinfo.bankname }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">联系人</th>
                  <td>${purchaseinfo.linkman }</td>
                  <th nowrap="nowrap">电话</th> 
                  <td>${purchaseinfo.telnumber }</td>
                  <th nowrap="nowrap">手机</th> 
                  <td>${purchaseinfo.phone }</td>
                </tr>
			</table>
			<table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
				<tr>
                  <td  colspan="6" class="bg_title">采 购 单 信 息</td>
                </tr>
                <tr>
                  <th width="13%" nowrap="nowrap">采购单编号</th>
                  <td width="20%">${purchaseinfo.purchaseid }</td>
                  <th width="13%" nowrap="nowrap">采购进度</th> 
                  <td width="20%">${purchaseinfo.progress }</td>
                  <th width="13%" nowrap="nowrap">采购员</th> 
                  <td width="20%">${purchaseinfo.buyer }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">运输类型</th>
                  <td >${purchaseinfo.carriage }</td>
                  <th nowrap="nowrap">下单日期</th>
                  <td >${purchaseinfo.orderdate }</td>
                  <th nowrap="nowrap">交货日期</th> 
                  <td >${purchaseinfo.deliverydate }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">创建时间</th>
                  <td colspan="2">${purchaseinfo.createtime }</td>
                  <th nowrap="nowrap">创建人</th> 
                  <td colspan="2">${purchaseinfo.personname }</td>
                </tr>
                <tr>
                  <th align="center" nowrap="nowrap" >备注信息</th> 
                  <td colspan="5"><textarea style="width: 100%;overflow: auto;text-align: left;" rows="3" readonly class="readinput">${purchaseinfo.remark}</textarea></td>
                </tr>
            </table>
            
            <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
            	<c:forEach var="buy" varStatus="status" items="${makingsinfo}">
            	<tbody>
				<tr>
                  <td colspan="6" class="bg_title" nowrap="nowrap"><div style="width:90%;height:100%;float: left;">原 材 料 信 息</div></td>
                </tr>
                <tr>
                  <th width="12%" nowrap="nowrap"><a href="#" title="选择物品" onclick="doSelmak()">物料名称</a></th>
                  <td width="28%">${buy.goodsname }</td>
                  <th width="12%" nowrap="nowrap">种类</th> 
                  <td width="18%">${buy.goodstype }</td>
                  <th width="12%" nowrap="nowrap">规格</th> 
                  <td width="18%">${buy.standard }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">品牌</th> 
                  <td >${buy.brand }</td>
                  <th nowrap="nowrap">参考单位</th> 
                  <td >${buy.unit }</td>
                  <th nowrap="nowrap">参考单价</th> 
                  <td >${buy.priceone }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">采购单价</th> 
                  <td >${buy.buyprice }</td>
                  <th nowrap="nowrap">采购数量</th>
                  <td >${buy.buynum }</td>
                  <th nowrap="nowrap">总金额</th> 
                  <td >${buy.summoney }</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">核算单价</th> 
                  <td >${buy.price }</td>
                  <th nowrap="nowrap">核算数量</th>
                  <td >${buy.sumgoods }</td>
                  <th nowrap="nowrap">采购单位</th> 
                  <td >${buy.buyunit }</td>
                </tr>
                <tr>
                  <th align="center" nowrap="nowrap" >备注信息</th> 
                  <td colspan="5"><textarea style="width: 100%;overflow: auto;text-align: left;" readonly class="readinput" rows="2" >${buy.remark }</textarea></td>
                </tr>
                </tbody>
                </c:forEach>
            </table>
		</td>
	</tr>
</table></td></tr></table>
</form>
</body>
</html>